
export default {
  data() {
    return {
      foot_item_index:"1",
    }
  },
  mounted(){
    this.init()
  },
  methods: {
    init(){
      let  name =  this.$route.name;
      if(name == 'sign_in_subscribe_home'){
        this.foot_item_index = '1'
      }else if(name == 'sign_in_subscribe_sign_in'){
        this.foot_item_index = '2'
      }else if(name == 'sign_in_subscribe_school'){
        this.foot_item_index = '3'
      }else if(name == 'sign_in_subscribe_my'){
        this.foot_item_index = '4'
      }
    },
    handleLink(index){
      if(index == '1'){
        this.$router.push(this.fun.getUrl("sign_in_subscribe_home"))
      }else if(index == '2'){
        this.$router.push(this.fun.getUrl("sign_in_subscribe_sign_in"))
      }else if(index == '3'){
        this.$router.push(this.fun.getUrl("sign_in_subscribe_school"))
      }else if(index == '4'){
        this.$router.push(this.fun.getUrl("sign_in_subscribe_my"))
      }

    }
  }
}